<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>MES管理系统</title>
<link rel="icon" href="${rc.getContextPath()}/manage/images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="${rc.getContextPath()}/manage/images/favicon.ico" type="image/x-icon" />
<link href="${rc.getContextPath()}/manage/styles/dwz/themes/default/style.css?v=${ver}" rel="stylesheet" type="text/css" media="screen" />
<link href="${rc.getContextPath()}/manage/styles/dwz/themes/css/core.css?v=${ver}" rel="stylesheet" type="text/css" media="screen" />
<link href="${rc.getContextPath()}/manage/styles/dwz/themes/css/print.css?v=${ver}" rel="stylesheet" type="text/css" media="print" />
<link href="${rc.getContextPath()}/manage/styles/dwz/themes/css/icons.css?v=${ver}" rel="stylesheet" type="text/css" media="screen" />
<link href="${rc.getContextPath()}/manage/styles/dwz/themes/css/mini.css?v=${ver}" rel="stylesheet" type="text/css" media="screen" />
<link href="${rc.getContextPath()}/manage/js/qtip/jquery.qtip.min.css" type="text/css" rel="stylesheet" />
<link href="${rc.getContextPath()}/manage/js/webuploader-0.1.5/webuploader.css?v=${ver}" rel="stylesheet" type="text/css" media="screen" />

<script src="${rc.getContextPath()}/manage/styles/dwz/js/jquery-1.7.2.js" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/js/pop.js?v=${ver}" type="text/javascript"></script>
<!-- jquery-1.7.2.min.js -->
<script src="${rc.getContextPath()}/manage/styles/dwz/js/jquery.cookie.js" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/styles/dwz/js/jquery.validate.js" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/styles/dwz/js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/styles/xheditor/xheditor-1.2.1.min.js?v=${ver}" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/styles/xheditor/xheditor_lang/zh-cn.js?v=${ver}" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/js/webuploader-0.1.5/webuploader.js" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/styles/dwz/js/dwz.min.js?v=${ver}" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/styles/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/js/qtip/jquery.qtip.min.js" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.lookup.js?v=${ver}" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/js/jquery-accordion-menu.js?v=${ver}" type="text/javascript"></script>
<script src='${rc.getContextPath()}/manage/js/fullcalendar/lib/moment.min.js'></script>
<script src='${rc.getContextPath()}/manage/js/fullcalendar/fullcalendar.min.js'></script>

<script type="text/javascript" src="${rc.getContextPath()}/manage/js/jquery.jgrid.js"></script>
<script type="text/javascript" src="${rc.getContextPath()}/manage/js/jquery.selectally.js"></script>
<!--[if lte IE 8]>
<script type="text/javascript" src="${rc.getContextPath()}/manage/pie/PIE.js"></script>
<script src="${rc.getContextPath()}/manage/js/jquery.enplaceholder.js"></script>
<![endif]-->
<!-- 以下js为自定义的dwz框架的js -->
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.js" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.init.js" type="text/javascript"></script>
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.tree.search.js" type="text/javascript"></script>
<script src='${rc.getContextPath()}/manage/js/businessJs/menu.js' type="text/javascript"></script>
<script type="text/javascript">
/**
 * 项目网络根路径
 */
var hostUrl = '${rc.getContextPath()}/manage/';
/**
 * 图片服务器网络根路径
 */
var imgHostUrl = hostUrl;

$(function() {
	DWZ.init("${rc.getContextPath()}/manage/styles/dwz/dwz.frag_zh.xml", {
		loginUrl : "${rc.getContextPath()}/manage/management/login",
		statusCode : {
			ok : 200,
			error : 300,
			timeout : 301
		}, // 【可选】
		pageInfo : {
			pageNum : "pageNum",
			numPerPage : "numPerPage",
			orderField : "orderField",
			orderDirection : "orderDirection"
		}, // 【可选】
		debug : false, // 调试模式 【true|false】
		callback : function() {
			initEnv();
			$("#themeList").theme({
				themeBase : "${rc.getContextPath()}/manage/styles/dwz/themes"
			}); // themeBase 相对于index页面的主题base路径
		}
	});
	$('.user').hover(function() {
		$('.userMoreList').show();
	}, function() {
		$('.userMoreList').hide();
	});
	$('.userMoreList').hover(function() {
		$(this).show();
	}, function() {
		$(this).hide();
	});
});

(function($) {
	// jQuery validate
	$.extend($.validator.messages, {
		required : "必填字段",
		remote : "已存在，请修正",
		email : "请输入正确格式的电子邮件",
		url : "请输入合法的网址",
		date : "请输入合法的日期",
		minDate : $.validator.format("请输入大于 {0} 的日期或时间"),
		maxDate : $.validator.format("请输入小于 {0} 的日期或时间"),
		dateISO : "请输入合法的日期 (ISO).",
		number : "请输入合法的数字",
		digits : "只能输入整数",
		creditcard : "请输入合法的信用卡号",
		equalTo : "请再次输入相同的值",
		accept : "请输入拥有合法后缀名的字符串",
		maxlength : $.validator.format("长度最多是 {0} 的字符串"),
		minlength : $.validator.format("长度最少是 {0} 的字符串"),
		rangelength : $.validator.format("长度介于 {0} 和 {1} 之间的字符串"),
		range : $.validator.format("请输入一个介于 {0} 和 {1} 之间的值 "),
		max : $.validator.format("请输入一个最大为 {0} 的值 "),
		min : $.validator.format("请输入一个最小为 {0} 的值 "),
		alphanumeric : "字母、数字、下划线",
		lettersonly : "必须是字母",
		phone : "数字、空格、括号",
		oneDecimal : $.validator.format("请输入正数,至多只能有一位小数"),
		noData : '======列表无数据====='
	});

	// DWZ regional
	$.setRegional("datepicker", {
		dayNames : ['日', '一', '二', '三', '四', '五', '六'],
		monthNames : ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
	});
	$.setRegional("alertMsg", {
		title : {
			error : "错误",
			info : "提示",
			warn : "警告",
			correct : "成功",
			confirm : "确认提示"
		},
		butMsg : {
			ok : "确定",
			yes : "是",
			no : "否",
			cancel : "取消"
		}
	});
})(jQuery);
// 禁止后退键 作用于IE、Chrome
document.onkeydown = function(e) {
	var ev = e || window.event; // 获取event对象
	var obj = ev.target || ev.srcElement; // 获取事件源
	var t = obj.type || obj.getAttribute('type');
	// 获取事件源类型
	// 获取作为判断条件的事件类型
	var vReadOnly = obj.readOnly;
	var vDisabled = obj.disabled;
	// 处理undefined值情况
	vReadOnly = (vReadOnly == undefined) ? false : vReadOnly;
	vDisabled = (vDisabled == undefined) ? true : vDisabled;
	if (ev.keyCode == 113) {
		$(document).trigger('KEY_F2');
	}
	// 当敲Backspace键时，事件源类型为密码或单行、多行文本的，
	// 并且readOnly属性为true或disabled属性为true的，则退格键失效
	var flag1 = ev.keyCode == 8
			&& (t == "password" || t == "text" || t == "textarea")
			&& (vReadOnly == true || vDisabled == true);
	// 当敲Backspace键时，事件源类型非密码或单行、多行文本的，则退格键失效
	var flag2 = ev.keyCode == 8 && t != "password" && t != "text"
			&& t != "textarea";
	// 判断
	if (flag2 || flag1)
		return false;
};
</script>
</head>
<body scroll="no">
	<div id="layout">
		<div id="header">
			<a class="logo" href="#">标志</a>
			<div class="headerNav">
				<ul class="nav">
					<li class="user" href="">${userInfo.userCode!''}<span></span></li>
					<ul class="userMoreList" style="right: 50px;">
						<li>
							<a href="${rc.getContextPath()}/manage/management/changePWD"
							target="dialog" rel="changePWD" mask="true" width="440"
							height="200">密码修改</a>
						</li>
					</ul>
					<li><a class="loginOut" confirm="确认要退出系统吗？" href="${rc.getContextPath()}/manage/management/logout" title="登出"><span></span></a></li>
				</ul>
			</div>
		</div>

		<div id="leftside">
			<div id="sidebar_s" style="border-right: 1px solid #d9dfe5;">
				<div class="collapse" style="border: none;">
					<div class="toggleCollapse">
						<div></div>
					</div>
					<!-- 隐藏菜单后的hover响应 -->
					<div class="hoverCollapse" style="height: 100%; display: none;"></div>
				</div>
			</div>
			<div id="sidebar" class="custom_tree">
				<div class="toggleCollapse" style="margin-left: -1px;">
					<h2 class="i18n" key="dwz_menu_title" place="html">导航菜单 </h2>
					<div>collapse</div>
				</div>
				<div id="menu" base="${rc.getContextPath()}/manage" primary="true"
					class="accordion" fillSpace="sidebar"></div>
			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<!-- ///////////////////////////////////多标签切换/////////////////////////////////////// -->
				<div class="tabsPageHeader"
					style="margin-left: -1px; border-left: none;">
					<div class="tabsPageHeaderContent">
						<!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span
										class="home_icon i18n" key="dwz_navTab_main" place="html">我的主页 </span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div>
					<!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div>
					<!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<!-- ////////////////////////////////////////多标签精确切换 /////////////////////////////////-->
				<ul class="tabsMoreList"></ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<!-- ////////////////////////////////////////页面详情，每个页面都自动添加<div class="page unitBox"></div> /////////////////////////////////-->
					<div class="page unitBox">
						<div class="pageFormContent" layoutH="10"
							style="background: url('${rc.getContextPath()}/manage/images/index/index-bg.jpg') no-repeat; background-size: 100% 100%;">
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>